package com.zkthink.ceres.order.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * <p>
 * 实体类
 * 分销者从购物中获得的利润(折扣现金)
 * </p>
 *
 * @author kellen
 * @since 2020-06-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SalesProfitOrderSaveDTO", description = "分销者从购物中获得的利润(折扣和现金)")
public class SalesProfitOrderSaveDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 分销人id
     */
    @ApiModelProperty(value = "购买者id")
    private Long buyMid;


    @ApiModelProperty(value = "分销人id")
    private Long fristSales;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @NotEmpty(message = "订单号不能为空")
    private Long orderNo;
    /**
     * 商户编号
     */
    @ApiModelProperty(value = "商户编号")
    @NotEmpty(message = "商户编号不能为空")
    private String tenantCode;

    /**
     * 结算状态 1未结算 2已结算
     */
    @ApiModelProperty(value = "结算状态 1未结算 2已结算")
    @NotNull(message = "结算状态 1未结算 2已结算不能为空")
    private Integer settleStatus;

    /**
     * 产品id
     */
    @ApiModelProperty(value = "产品id")
    private Long productId;

    /**
     * 订单实付金额
     */
    @ApiModelProperty(value = "订单实付金额")
    @NotNull(message = "订单实付金额不能为空")
    private Long orderAmount;

    /**
     * 需要支付的运费
     */
    @ApiModelProperty(value = "需要支付的运费")
    @Excel(name = "需要支付的运费")
    private Long postPay;
}

